{#include file="admin_header.htm"#}
<script src="ajax/ajax_category_editjobs.js" type='text/javascript' language="javascript"></script>
<script>
function chk_form()
{
if (document.Form1.jobs_name.value=="")
	{
	alert("请输入职位名称")
	document.Form1.jobs_name.focus();
	return (false);
	}
if (document.Form1.amount.value=="" || document.Form1.amount.value==0)
	{
	alert("请正确输入人数！")
	document.Form1.amount.focus();
	return (false);
	}
if (document.Form1.category.value=="")
	{
	alert("请选择职位分类！")
	document.Form1.category.focus();
	return (false);
	}
if (document.Form1.subclass.value=="")
	{
	alert("请选择职位小类！")
	document.Form1.subclass.focus();
	return (false);
	}
if (document.Form1.trade.value=="")
	{
	alert("请选择所属行业！")
	document.Form1.trade.focus();
	return (false);
	}
if (document.Form1.district.value=="")
	{
	alert("请选择工作地区！")
	document.Form1.district.focus();
	return (false);
	}
if (document.Form1.contents.value.length<10)
	{
	alert("请输入职位描述！（10个字符以上）")
	document.Form1.contents.focus();
	return (false);
}
if (document.Form1.contact.value=="")
	{
	alert("请输入联系人！")
	document.Form1.contact.focus();
	return (false);
	}
if (document.Form1.telephone.value=="")
	{
	alert("请输入联系电话！")
	document.Form1.telephone.focus();
	return (false);
	}
if (document.Form1.address.value=="")
	{
	alert("请输入联系地址！")
	document.Form1.address.focus();
	return (false);
	}
if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,4})+$/.test(document.Form1.email.value))==0)
{
alert("E_Mail格式有误!")
document.Form1.email.focus();
return (false);
}
return (true);
}
</script>
<div class="admin_main_nr_dbox">
<form id="Form1" name="Form1" method="post" action="?act=editjobs_save"  onsubmit="return chk_form();">
<table width="700" border="0" cellspacing="0" cellpadding="5"  >
  <tr>
    <td height="25" style="font-size:14px;">&nbsp;</td>
    <td width="80" style="font-size:14px;"><input name="submit" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="保存修改"/></td>
    <td width="80" style="font-size:14px;"><input name="submit2" type="button" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="返 回" onclick="Javascript:window.history.go(-1)"/></td>
  </tr>
</table>
<table width="700" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF"  >
<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">所属会员：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
{#$jobs.jobs_username#}
		 </td>
      </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">所属企业：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed" class="link_lan">
            <a href="{#$jobs.company_url#}" target="_blank">{#$jobs.companyname#}</a>		 </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span>  招聘状态：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <label><input name="display"  type="radio" value="1" {#if $jobs.display eq "1"#}checked="checked"{#/if#} />招聘中</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 <label><input name="display"  type="radio" value="2" {#if $jobs.display eq "2"#}checked="checked"{#/if#} />暂停招聘</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 </td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 审核状态：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		    <label><input name="audit"  type="radio" value="2" {#if $jobs.audit eq "2"#}checked="checked"{#/if#} />审核中</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		  <label><input name="audit"  type="radio" value="1" {#if $jobs.audit eq "1"#}checked="checked"{#/if#} />审核通过</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		   <label><input name="audit"  type="radio" value="3" {#if $jobs.audit eq "3"#}checked="checked"{#/if#} />审核未通过</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		 </td>
        </tr>
        <tr>
          <td width="110" height="30" align="right" bgcolor="#FFFFFF"  style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 职位名称：</td>
          <td  style=" border-bottom:1px #CCCCCC dashed"><input name="jobs_name" type="text" class="article_text_f" id="jobs_name" value="{#$jobs.jobs_name#}" maxlength="10" />
              <input name="emergency" type="checkbox" id="emergency" style="vertical-align:middle"  value="2" {#if $jobs.emergency eq 2#}checked="checked"{#/if#}/>
            <label for="emergency"> 紧急招聘 </label>&nbsp;&nbsp;&nbsp;</td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 职位性质：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  {#section name=nature loop=$nature#}
		   <label><input name="nature"  type="radio" value="{#$nature[nature].id#}" {#if $nature[nature].id eq $jobs.nature#}checked="checked"{#/if#} />
		   {#$nature[nature].categoryname#}&nbsp;&nbsp;&nbsp;&nbsp;</label>  
		  {#/section#}		  </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold;">*</span> 招聘人数：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="amount" type="text" class="article_text_f" id="amount" value="{#$jobs.amount#}" maxlength="3" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            人</td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF"style=" border-bottom:1px #CCCCCC dashed">有效时间：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">{#$jobs.deadline_days#}。<span style="color: #999999">(发布日期为：{#$jobs.addtime|date_format:"%Y-%m-%d %H:%M:%S"#}，截止日期为：{#$jobs.deadline|date_format:"%Y-%m-%d %H:%M:%S"#})</span><input name="olddays" type="hidden" value="{#$jobs.days#}" /><input name="olddeadline" type="hidden" value="{#$jobs.deadline#}" /></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style="border-bottom:1px #CCCCCC dashed; color:#0033CC">延长有效时间：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="days" type="text"  class="article_text_f" id="days" onKeyUp="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');check_deadline(this.value);total_pointst()" value="0" maxlength="3" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"  style="width:50px;"/> 天&nbsp;&nbsp;(0表示不延长)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span id="daysa"></span></td>
        </tr>
        <tr>
          <td height="30" align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 职位类别：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="category"  style="width:210px; height:20px; font-size:12px;" onChange="show_category(this.value)">
		  <option value="">请选择职位大类</option>
		  {#section name=category loop=$category#}
            <option value="{#$category[category].id#}" {#if $category[category].id eq $jobs.category#}selected="selected"{#/if#}>{#$category[category].categoryname#}</option>
			{#/section#}
            </select>
            精准选择职位类别可以有效提升招聘效果
<div id="subclass" style="padding-top:8px;">
            <select name="subclass" style="width:210px; height:20px; font-size:12px;">
			  {#section name=subclass loop=$subclass#}
            <option value="{#$subclass[subclass].id#}" {#if $subclass[subclass].id eq $jobs.subclass#}selected="selected"{#/if#}>{#$subclass[subclass].categoryname#}</option>
			{#/section#}
            </select>
</div></td>
        </tr>
		<tr>
          <td align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 所属行业：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="trade"  style="width:210px; height:20px; font-size:12px;">
		  <option value="">请选择行业</option>
		  {#section name=trade loop=$trade#}
            <option value="{#$trade[trade].id#}" {#if $trade[trade].id eq $jobs.trade#}selected="selected"{#/if#}>{#$trade[trade].categoryname#}</option>
			{#/section#}
            </select> </td>
        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 工作地区：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="district"  style="width:210px; height:20px; font-size:12px;">
		  <option value="">请选择工作地区</option>
		  {#section name=district loop=$district#}
            <option value="{#$district[district].id#}" {#if $district[district].id eq $jobs.district#}selected="selected"{#/if#}>{#$district[district].categoryname#}</option>
			{#/section#}
            </select>		  </td>
        </tr>
		   <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"> 学历要求：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><select name="education"  style="width:210px; height:20px; font-size:12px;">
            <option value="">学历不限</option>            
		  {#section name=education loop=$education#}            
            <option value="{#$education[education].id#}" {#if $education[education].id eq $jobs.education#}selected="selected"{#/if#}>{#$education[education].categoryname#}</option>            
			{#/section#}            
          </select>
          及以上</td>
          </tr>
				<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">工作经验：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="experience"  style="width:210px; height:20px; font-size:12px;">
            <option value="">工作经验不限</option>            
		  {#section name=experience loop=$experience#}            
            <option value="{#$experience[experience].id#}" {#if $experience[experience].id eq $jobs.experience#}selected="selected"{#/if#}>{#$experience[experience].categoryname#}</option>            
			{#/section#}            
          </select>		  </td>
		        </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <span style="color:#FF3300; font-weight:bold">*</span> 月薪范围：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <select name="wage"  style="width:210px; height:20px; font-size:12px;">
		  {#section name=wage loop=$wage#}            
            <option value="{#$wage[wage].id#}" {#if $wage[wage].id eq $jobs.wage#}selected="selected"{#/if#}>{#$wage[wage].categoryname#}</option>            
			{#/section#}            
          </select></td>
        </tr>
        <tr>
          <td align="right" valign="top" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <span style="color:#FF3300; font-weight:bold">*</span> 职位描述：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">
		  <textarea name="contents" class="company_mb_textarea" id="contents" style="width:450px; height:150px;"onpropertychange="if(this.value.length>1000){this.value=this.value.slice(0,1000)}">{#$jobs.contents#}</textarea>
            <br />
            <div style="line-height:30px; height:30px;">&nbsp;说明：请详细描述该职位，内容可包括：职位要求，岗位职责等。</div> </td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#EDF5F8" style=" border-bottom:1px #CCCCCC dashed"><strong>联系方式</strong></td>
          <td bgcolor="#EDF5F8" style=" border-bottom:1px #CCCCCC dashed">(默认为企业联系方式)</td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联 系 人：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="contact" type="text" class="article_text_f" id="contact" value="{#$jobs.contact.contact#}" maxlength="15" /></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold"> </span>联系人QQ号码：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="qq" type="text" class="article_text_f" id="qq" maxlength="50" value="{#$jobs.contact.qq#}" />
            <label></label></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联系电话：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="telephone" type="text" class="article_text_f" id="telephone" maxlength="35" value="{#$jobs.contact.telephone#}" /></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联系地址：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><input name="address" type="text" class="article_text_f" id="address" maxlength="50"  value="{#$jobs.contact.address#}"/></td>
        </tr>
		<tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="color:#FF3300; font-weight:bold">*</span> 联系邮箱：</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><label>
          <input name="email" type="text" class="article_text_f" id="email" maxlength="80"  value="{#$jobs.contact.email#}"/>
          </label></td>
        </tr>
          <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">用邮箱接收简历?</td>
          <td bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><label>
            <input name="notify" type="radio" value="1" {#if $jobs.contact.notify eq 1#}checked="checked"{#/if#} /> 接收
          </label> &nbsp;&nbsp;&nbsp;
            <label>
            <input type="radio" name="notify" value="0" {#if $jobs.contact.notify eq "0"#}checked="checked"{#/if#}/>不接收            </label> 
            <span style="color: #666666"> &nbsp;&nbsp;&nbsp;(默认为接收：当有人给此岗位投递简历时，系统会发一份通知邮件提醒查看)</span></td>
        </tr>  <tr>
            <td height="30" align="right" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed">&nbsp;</td>
            <td height="120" bgcolor="#FFFFFF" style=" border-bottom:1px #CCCCCC dashed"><span style="font-size:14px;">
              <input type="hidden" name="id"  value="{#$jobs.id#}" />
			  <input type="hidden" name="url"  value="{#$url#}" />
              <input name="submit3" type="submit" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="保存修改"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <input name="submit22" type="button" class="Qishi_submit_a" onmouseover="this.className='Qishi_submit_b'"  onmouseout="this.className='Qishi_submit_a'" value="返 回" onclick="window.location.href='{#$url#}'"/>
            </span></td>
          </tr>
  </table>
  </form>
</div>
{#include file="admin_footer.htm"#}
</body>
</html>